package reflection.entity;

import reflection.annotation.MyAnnotation;
import reflection.service.MyInterface;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2021/4/11 23:42
 * @description
 */
@MyAnnotation()
public class Graduate<T> extends User implements MyInterface {
    @MyAnnotation()
    private Integer stuId;

    public Graduate(Integer stuId) {
        this.stuId = stuId;
    }

    public Graduate(String name, Integer age, String userId, Integer stuId) {
        super(name, age, userId);
        this.stuId = stuId;
    }

    public Graduate() {
        super();
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    @Override
    public String toString() {
        return "Graduate{" +
                "stuId=" + stuId +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", userId='" + userId + '\'' +
                '}';
    }

    /**
     * 说些啥
     *
     * @param s
     */
    @Override
    public void saySomething(String s) {
        System.out.println(s + "hello world!");
    }
}
